package com.qf.commerce.service;

import com.github.pagehelper.PageInfo;
import com.qf.commerce.common.dto.DealerDto;
import com.qf.commerce.common.vo.DealerVo;
import com.qf.commerce.entity.Dealer;

/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/13 10:48
*/

public interface DealerService{

    Dealer selectByPrimaryKey(Integer dealerId);

    int updateByPrimaryKeySelective(DealerDto dealerDto);

    PageInfo<DealerVo> selectListPage(Integer page, Integer size);

    Integer applyDealer(DealerDto dealerDto);

    Integer agreeDealerApply(Integer dealerId);

    Integer disagreeDealerApply(Integer dealerId);

    Integer deleteById(Integer dealerId);
}